home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / include / necko / nsIAuthPromptProvider.h < prev    next >
C/C++ Source or Header  |  2006-05-08  |  3KB  |  111 lines

  1. /*
  2.  * DO NOT EDIT.  THIS FILE IS GENERATED FROM nsIAuthPromptProvider.idl
  3.  */
  4.  
  5. #ifndef __gen_nsIAuthPromptProvider_h__
  6. #define __gen_nsIAuthPromptProvider_h__
  7.  
  8.  
  9. #ifndef __gen_nsISupports_h__
  10. #include "nsISupports.h"
  11. #endif
  12.  
  13. /* For IDL files that don't want to include root IDL files. */
  14. #ifndef NS_NO_VTABLE
  15. #define NS_NO_VTABLE
  16. #endif
  17. class nsIAuthPrompt; /* forward declaration */
  18.  
  19.  
  20. /* starting interface:    nsIAuthPromptProvider */
  21. #define NS_IAUTHPROMPTPROVIDER_IID_STR "129d3bd5-8a26-4b0b-b8a0-19fdea029196"
  22.  
  23. #define NS_IAUTHPROMPTPROVIDER_IID \
  24.   {0x129d3bd5, 0x8a26, 0x4b0b, \
  25.     { 0xb8, 0xa0, 0x19, 0xfd, 0xea, 0x02, 0x91, 0x96 }}
  26.  
  27. class NS_NO_VTABLE nsIAuthPromptProvider : public nsISupports {
  28.  public: 
  29.  
  30.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_IAUTHPROMPTPROVIDER_IID)
  31.  
  32.   /**
  33.      * Normal (non-proxy) prompt request.
  34.      */
  35.   enum { PROMPT_NORMAL = 0U };
  36.  
  37.   /**
  38.      * Proxy auth request.
  39.      */
  40.   enum { PROMPT_PROXY = 1U };
  41.  
  42.   /**
  43.      * Request a nsIAuthPrompt interface for the given prompt reason;
  44.      * @throws NS_ERROR_NOT_AVAILABLE if no prompt is allowed or
  45.      * available for the given reason.
  46.      *
  47.      * @param aPromptReason   The reason for the auth prompt;
  48.      *                        one of @PROMPT_NORMAL or @PROMPT_PROXY
  49.      * @returns a nsIAuthPrompt interface, or throws NS_ERROR_NOT_AVAILABLE
  50.      */
  51.   /* nsIAuthPrompt getAuthPrompt (in PRUint32 aPromptReason); */
  52.   NS_IMETHOD GetAuthPrompt(PRUint32 aPromptReason, nsIAuthPrompt **_retval) = 0;
  53.  
  54. };
  55.  
  56. /* Use this macro when declaring classes that implement this interface. */
  57. #define NS_DECL_NSIAUTHPROMPTPROVIDER \
  58.   NS_IMETHOD GetAuthPrompt(PRUint32 aPromptReason, nsIAuthPrompt **_retval); 
  59.  
  60. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  61. #define NS_FORWARD_NSIAUTHPROMPTPROVIDER(_to) \
  62.   NS_IMETHOD GetAuthPrompt(PRUint32 aPromptReason, nsIAuthPrompt **_retval) { return _to GetAuthPrompt(aPromptReason, _retval); } 
  63.  
  64. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  65. #define NS_FORWARD_SAFE_NSIAUTHPROMPTPROVIDER(_to) \
  66.   NS_IMETHOD GetAuthPrompt(PRUint32 aPromptReason, nsIAuthPrompt **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAuthPrompt(aPromptReason, _retval); } 
  67.  
  68. #if 0
  69. /* Use the code below as a template for the implementation class for this interface. */
  70.  
  71. /* Header file */
  72. class nsAuthPromptProvider : public nsIAuthPromptProvider
  73. {
  74. public:
  75.   NS_DECL_ISUPPORTS
  76.   NS_DECL_NSIAUTHPROMPTPROVIDER
  77.  
  78.   nsAuthPromptProvider();
  79.  
  80. private:
  81.   ~nsAuthPromptProvider();
  82.  
  83. protected:
  84.   /* additional members */
  85. };
  86.  
  87. /* Implementation file */
  88. NS_IMPL_ISUPPORTS1(nsAuthPromptProvider, nsIAuthPromptProvider)
  89.  
  90. nsAuthPromptProvider::nsAuthPromptProvider()
  91. {
  92.   /* member initializers and constructor code */
  93. }
  94.  
  95. nsAuthPromptProvider::~nsAuthPromptProvider()
  96. {
  97.   /* destructor code */
  98. }
  99.  
  100. /* nsIAuthPrompt getAuthPrompt (in PRUint32 aPromptReason); */
  101. NS_IMETHODIMP nsAuthPromptProvider::GetAuthPrompt(PRUint32 aPromptReason, nsIAuthPrompt **_retval)
  102. {
  103.     return NS_ERROR_NOT_IMPLEMENTED;
  104. }
  105.  
  106. /* End of implementation class template. */
  107. #endif
  108.  
  109.  
  110. #endif /* __gen_nsIAuthPromptProvider_h__ */
  111.